# coding=utf-8


def check_min_version(request, ios: int, android: int):
    if request.os == "ios":
        return int(request.ua.other.build or 0) >= ios
    elif request.os == "android":
        return int(request.ua.other.build or 0) >= android
    return False
